package game.models;

import map.PlayerObject;

public class RunningMovementBehaviour implements MovementBehaviour {

	private PlayerObject player;
	
	public RunningMovementBehaviour(PlayerObject player){
		this.player = player;
	}
	
	@Override
	public boolean moveLeft() {
		return player.moveAction(player.getCurX()-1, player.getCurY());
	}

	@Override
	public boolean moveRight() {
		return player.moveAction(player.getCurX()+1, player.getCurY());
	}

	@Override
	public boolean moveUp() {
		return player.moveAction(player.getCurX(), player.getCurY()-1);
	}

	@Override
	public boolean moveDown() {
		return player.moveAction(player.getCurX(), player.getCurY()+1);
	}
	

}
